package com.holdtime.jtt809.taxi.module.entity.mapper;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.holdtime.jtt809.taxi.module.entity.PlatformLogoutLogDO;
import com.holdtime.jtt809.taxi.module.model.vo.PlatformLogoutLogPageReqVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 下级平台登出日志 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface PlatformLogoutLogMapper extends BaseMapperX<PlatformLogoutLogDO> {

    default PageResult<PlatformLogoutLogDO> selectPage(PlatformLogoutLogPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<PlatformLogoutLogDO>()
                .eqIfPresent(PlatformLogoutLogDO::getDcsj, reqVO.getDcsj())
                .eqIfPresent(PlatformLogoutLogDO::getPfGnsscenterid, reqVO.getPfGnsscenterid())
                .eqIfPresent(PlatformLogoutLogDO::getUserid, reqVO.getUserid())
                .eqIfPresent(PlatformLogoutLogDO::getPassword, reqVO.getPassword())
                .eqIfPresent(PlatformLogoutLogDO::getLinkIp, reqVO.getLinkIp())
                .betweenIfPresent(PlatformLogoutLogDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(PlatformLogoutLogDO::getId));
    }

}